package org.erepublik.company.searchCriteria;

public enum ERawRegion {
    HIGH("high"),
    MEDIUM("medium"),
    LOW("low");
    
    private String name;

    ERawRegion(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    public static ERawRegion getRegionByErepublikId(int id) {
        if (id==1)
            return LOW;
        if (id==2)
            return MEDIUM;
        if (id==3)
            return HIGH;
        
        return null;
    }
}
